package com.xujianlong.day02;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

import java.util.ArrayList;
import java.util.Arrays;

public class Flink02_Source_Collection
{
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);

        //env.readTextFile("");
        env.fromElements("dd","dd");
        env.fromCollection( Arrays.asList("dd","gg","dfd"));

        env.execute();
    }
}
